home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-10-04 | 1.8 KB | 55 lines |
- package sub_arctic.anim;
-
- /**
- * This is an interface for trajectories. It converts a floating
- * point value into a Object. This is done with the help of
- * a pacing function. <p>
- *
- * @author Ian Smith
- */
- public interface trajectory {
-
- /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
-
- /**
- * This is the function that does the mapping of a point in
- * time to an object. You can return any object you like
- * and this will be handed to the animatable object which is
- * the target of this transition.<p>
- *
- * @param double parm the point in time to be mapped
- * @param Object the result of mapping this time point
- */
- public Object object_for_parm(double parm);
-
- /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
-
- /**
- * This returns the pacing function (pacer) for this trajectory.
- * The pacing function maps time to time and the result of this
- * function is passed to the object_for_parm() function above.<p>
- *
- * @return pacer the pacer objet (pacing function) to use for this trajectory
- */
- public pacer pacing_function();
-
- /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
- }
-
- /*=========================== COPYRIGHT NOTICE ===========================
-
- This file is part of the subArctic user interface toolkit.
-
- Copyright (c) 1996 Scott Hudson and Ian Smith
- All rights reserved.
-
- The subArctic system is freely available for most uses under the terms
- and conditions described in
- http://www.cc.gatech.edu/gvu/ui/sub_arctic/sub_arctic/doc/usage.html
- and appearing in full in the lib/interactor.java source file.
-
- The current release and additional information about this software can be
- found starting at: http://www.cc.gatech.edu/gvu/ui/sub_arctic/
-
- ========================================================================*/
-